// 重新定义导航元素 覆盖bootstrap框架自带的样式

html{
    scroll-behavior: smooth;
}
.navbar{
    //修改背景
    background: #87b8d9;
    overflow: hidden;
    border-radius: 0%;
    // margin: 0px;
    border:0px;
    width: 100%;
    padding: .8em 0em;
    
    // 让其紧贴浏览器窗口
    position: fixed;
    left: 0;
    top: 0;
    // 层级深度
    z-index: 10;

    .navbar-toggle .icon-bar {
        background-color: #fff;
    }

    .navbar-brand {
        font-family: OSBold;
        color: #ffffff;
        // font-size: 2em;
    }

    .navbar-nav li a {
        // color: #062141;
        // font-size: 1.1em;
        text-transform: uppercase;
        color: #fff;
        &:hover{
            color: #797979;
        }
    }
      // 导航元素修改
    .nav{
        overflow: hidden;
        margin: 0px;
        
    }
    
    //修改导航栏
    .nav a{
        text-transform: uppercase;
        transition: all .3s linear;
        font-family: OSBold;
        border-bottom: 5px solid transparent;
        &:hover{
            border-bottom: 5px solid #e1a91e;
            transform:scale(1.1);
        }
        
    }

    //css媒体查询
    @media screen and (max-width:1000px) and (min-width:770px) {
        display: block;
        .navbar-right {
            float: left !important;
        }
    }
    @media screen and (max-width:770px){
        .nav a{
            text-align: center;
        }

    }
}


.banner{
    text-align: center;
    // background:url(../images/banner_bg.png )  no-repeat center ;
    // background-size: cover;
    background: #8abed8;
    color:#fff;
    padding: 8.3em 0em ;
    margin-top: 5.5em;
    
    overflow: hidden;

    .title{
        font-family: OSBold;
        font-size: 3.2em;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 1.8em;
        span{
            color: #797979;
        }
    }

    .subtitle{
        font-family: OSLight;
        font-size: 2em;
        font-weight: 1000;
        margin-bottom: 5em;
        
        span{
            font-family: OSBold;
            color: #797979;
        }

    }

    .more{
        width: 4em;
        height: 4em;
        line-height: 3em;
        border: 3px solid #fff ;
        margin: 0 auto;
        border-radius: 100%;

        transition: all linear .3s;

        a{
            font-size: 2em;
            font-weight: bold;
            color: #fff;
        }

        &:hover{
            transform: translateY(-10px);
            box-shadow: 0px 10px 10px 1px #e1a91e;
        }
    }
}

.about{
    // 上下边距
    padding: 6em 0em 8em;
    color: #222222;
    
    .container{
        // 弹性布局
        display: flex;

        .left{
            // 默认缩放为1 0不缩放
            flex-shrink: .5;
            margin-top: 9px;
        }

        .right{
            width:60%;
            // border:10px solid red;

            .subject{
                margin-bottom: 2em;
                .small{
                    text-transform: uppercase;
                    font-size: 1.5em;
                    font-family: OSLight;
                    color: #636363;
                }
                .big{
                    font-size: 2.5em;
                    // font-family: OSBold;
                    text-transform: uppercase;
                    color: #000;
                    
                    // 强制不换行
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;

                    span:first-child{
                        display: inline-block;
                        padding-bottom: 5px;
                        border-bottom: 4px solid #fcac45;

                    }
                    span:last-child{
                        font-family: OSBold;
                    }
                }

                .desc{

                    color: grey;
                    font-size: 1.5em;
                    font-weight: 100;
                    margin-bottom: 1.3em;
                    margin-top: 1.1em;
                }

                .list{
                    
                    margin-bottom: 3em;
                    font-size: 1.2em;
                    li{
                        margin-bottom: 4px;
                        span:first-child{
                            margin-top: 2px;
                            color: #636363;
                        }
                        
                        span:last-child{
                            font-family: OSBold;
                            color: #636363;
                        }

                    }

                }

                .more{
                    display: flex;
                    justify-content: center;
                    align-content: center;
                    width: 15em;
                    padding: 1em 1em;
                    border: 1px solid gray;
                    border-radius: 3%;
                    cursor: pointer;
                    transition: all linear .3s;
                    &:hover{
                        transform: translateY(-10px);
                        box-shadow: 0px 10px 10px 1px #767676;
                    }
                    span:last-child{
                        text-transform: uppercase;
                        font-size: 11px;
                        font-weight: bold;
                        font-family: OSBold;
                    }
                }
            }
            
        }
    }

    @media screen and (max-width:1000px) {
        .container{
            .left{display: none;}
            .right{width: 100%;}
        }
    }
    
    @media screen and (max-width:500px){
        padding: 3em 0em;
        
    }
}

.team{
    
    background: #8abed8;
    color: #ffff;
    padding: 6em 0em;
    text-align: center;
    .title{
        font-size: 3em;
        text-transform: uppercase;
        font-family: OSLight;
        // font-weight: 100;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 2em;
        padding-bottom: .8em;
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }
    .list{
        display: flex;
        justify-content: space-between;
        margin-bottom: 5em;
        
        .item{
            width: 23%;
            // border: 3px solid red;

            .cover{
                width: 70%;
                margin: 0 auto;
                border-radius: 100%;
                overflow: hidden;
                margin-bottom: 1em;

                transition: all linear .3s;
                &:hover{
                    transform: translateY(-10px);
                    box-shadow: 0px 10px 10px 1px #75899e;
                }
            }

            .box{
                text-align: center;

                p:first-child{
                    font-family: OSBold;
                    font-size: 1.3em;
                }
                p:nth-child(2){
                    margin-bottom: 2em;
                }
            }
        }
    }

    .more{
        width: 100%;
        text-align: center;
        margin-top: 1em;
        span{
            display: inline-block;
            width: 10px;
            height: 10px;
            font-size: 10px;
            background: #ffff;
            
            margin-right: 1em;

            transition: all linear .3s;
            cursor: pointer;
            // 增加自动跳转效果
            &:hover{
                background: #fcac45;
                color: #fcac45;

            }
        }
    }


    @media screen and (max-width:600px) {
        &{
            padding: 6em 0em 3em;
        }
        .list{
            // 取消flex
            display: block;
            margin-bottom: 3em;
            .item{
                width: 100%;
                display: flex;
                margin-bottom: 1em;
                .cover{
                    border-radius: 0%;
                    width: 50%;
                    margin-right: 2%;
                }
                .box{
                    text-align: left;
                }
            }
        }
        
    }
}

.service{
    
    background: #fff;
    color: #111;
    padding: 6em 0em 1em;
    text-align: center;
    .title{
        font-size: 3em;
        text-transform: uppercase;
        font-family: OSLight;
        // font-weight: 100;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 0.8em;
        padding-bottom: 1em;
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }
    
    .desc{
        color: #6c6c6c;
        margin-bottom: 8em;
    }

    .list{
        display: flex;
        justify-content: space-between;
        margin-bottom: 5em;
        
        .item{
            width: 23%;
            // border: 3px solid red;

            .cover{
                width: 50%;
                margin: 0 auto;
                
                overflow: hidden;
                margin-bottom: 1em;
                border: 6px solid #fcac45;
                border-radius: 100%;

                transition: all linear .3s;
                &:hover{
                    transform: translateY(-10px);
                    box-shadow: 0px 10px 10px 1px #75899e;
                }
            }

            .box{
                text-align: center;

                p:first-child{
                    font-family: OSBold;
                    font-size: 1.3em;
                }
                p:last-child{
                    color: #a9a9a9;
                }
            }
        }
    }


    @media screen and (max-width:600px) {
        &{
            padding: 6em 0em 3em;
        }
        .list{
            // 取消flex
            display: block;
            margin-bottom: 3em;
            .item{
                width: 100%;
                display: flex;
                margin-bottom: 1em;
                .cover{
                    border-radius: 0%;
                    width: 50%;
                    margin-right: 2%;
                }
                .box{
                    text-align: left;
                }
            }
        }
        
    }
}


.client{
    
    background: #8abed8;
    color: #ffff;
    padding: 6em 0em;
    text-align: center;
    .title{
        font-size: 3em;
        text-transform: uppercase;
        font-family: OSLight;
        // font-weight: 100;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 0.8em;
        padding-bottom: 0.8em;
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }
    .list{
        display: flex;
        justify-content: space-between;
        margin-bottom: 5em;
        
        .item{
            width: 23%;
            // border: 3px solid red;

            .cover{
                width: 70%;
                margin: 0 auto;
                border-radius: 100%;
                overflow: hidden;
                margin-bottom: 1em;

                transition: all linear .3s;
                &:hover{
                    transform: translateY(-10px);
                    box-shadow: 0px 10px 10px 1px #75899e;
                }
            }

        }
    }

    .more{
        width: 100%;
        text-align: center;
        margin-top: 1em;
        span{
            display: inline-block;
            width: 10px;
            height: 10px;
            font-size: 10px;
            background: #ffff;
            
            margin-right: 1em;

            transition: all linear .3s;
            cursor: pointer;
            // 增加自动跳转效果
            &:hover{
                background: #fcac45;
                color: #fcac45;

            }
        }
    }

    @media screen and (max-width:600px) {
        &{
            padding: 6em 0em 3em;
        }
        .list{
            // 取消flex
            display: block;
            text-align: center;

            margin-bottom: 3em;
            .item{
                width: 100%;
                margin-bottom: 2em;
                .cover{
                    border-radius: 0%;
                    width: 30%;
                }
            }
        }
        
    }
}

.work{
    
    background: #fff;
    color: #111;
    padding: 6em 0em 1em;
    text-align: center;
    .title{
        font-size: 3em;
        text-transform: uppercase;
        font-family: OSLight;
        // font-weight: 100;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 0.8em;
        padding-bottom: 1em;
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }
    
    .desc{
        padding: 1em 0em;
        color: #6c6c6c;
        font-size: 16px;
        margin-bottom: 7em;
    }

    .line{
        display: flex;
        justify-content: space-between;
        margin-bottom: 2.8em;
        .left{
            text-transform: uppercase;
        }
        .right{
            display: flex;
            span{
                font-weight: bold;
            }
            a{
                color: #767676;
                &:hover{
                    color: #19a1e5;
                }
            }
        }
    }

    .list{
        justify-content:center;
        margin-bottom: 1em;
        
        .item{
            display: flex;

            .cover{
                width: 80%;
                img{
                    max-width: 90%;
                }
                margin-bottom: 2em;
                overflow: hidden;


                transition: all linear .3s;
                &:hover{
                    transform:scale(1.1);
                    // box-shadow: 0px 10px 0px 10px #75899e;
                }
            }


        }
    }


    @media screen and (max-width:600px) {
        &{
            padding: 6em 0em 3em;
        }
        .line{
            display: block;
        }
        .list{
            // 取消flex
            display: block;
            margin-bottom: 3em;
            .item{
                width: 100%;
                display: flex;
                margin-bottom: 1em;
                .cover{
                    width: 50%;
                    margin-right: 2%;
                }
            }
        }
        
    }
}


.testimonials{
    
    background: #8abed8;
    color: #ffff;
    padding: 6em 0em;
    text-align: center;
    .title{
        font-size: 2.5em;
        text-transform: uppercase;
        font-family: OSLight;
        // font-weight: 100;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 2em;
        padding-bottom: 0.8em;
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }

    .desc{
        text-transform: uppercase;
        text-align: center;
        font-size: 14px;
        padding: 0em 12em;
        p{
            color: #767676;
            padding: 3em 0em;
            text-transform: none;
        }
    }

    .more{
        width: 100%;
        text-align: center;
        margin-top: 1em;
        span{
            display: inline-block;
            width: 10px;
            height: 10px;
            font-size: 10px;
            background: #ffff;
            
            margin-right: 1em;

            transition: all linear .3s;
            cursor: pointer;
            // 增加自动跳转效果
            &:hover{
                background: #fcac45;
                color: #fcac45;

            }
        }
    }
    @media screen and (max-width:600px) {
        &{
            padding: 6em 0em 3em;
        }
        
    }
}


.contact{
    padding: 6em 0em;

    
    .title{
        width: 80%;
        margin: 0 auto;
        font-size: 3em;
        text-transform: uppercase;
        font-family: OSLight;
        text-align: center;
        background: url('../images/title-background.png') no-repeat center bottom;
        margin-bottom: 0.8em;
        padding-bottom: 0.8em;

        // 强制不换行
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        
        span{
            // font-family: OSBold;
            font-weight: bold;
        }
        
    }
    .desc{
        text-align: center;
        width: 85%;
        font-family: OSLight;
        margin: 0 auto;
        font-size: 1.2em;
        margin-bottom: 6em
    }

    // 表单
    .register{
        width: 100%;
        // border: 4px solid red;

        .top{
            width: 100%;
            display: flex;
            // 居中对齐
            justify-content: space-between; 
            margin-bottom: 1em;


            .item{

                width: 49%;
                h5{
                    font-size: 1.2em;
                    margin-bottom: .2em;
                    color: #797979;
                    // 星号
                    sup{
                        color: red;
                        font-size: 100%s;
                        top: 0;
                    }
                    margin-bottom: 0.4em;
                }
                input{
                    width: 100%;
                    height: 2em;
                    line-height: 2em;
                    font-size: 1.5em;
                }

            }
        }

        // 留言
        .bottom{
            width: 100%;
            margin-bottom: 1em;
            h5{
                font-size: 1.2em;
                margin-bottom: .2em;
                color: #797979;
                sup{
                    color: red;
                    font-size: 100%;
                    top: 0;
                }
            }
            textarea{
                display: block;
                width: 100%;
                height: 14em;
                font-size: 1.2em;
            }
        }
    }

    .send{
        width: 100%;
        text-align: right;
        
        button{
            width: 13em;
            height: 3em;
            line-height: 3em;
            color: #fff;
            background: #fcac45;
            text-transform: uppercase;
            text-align: center;
            font-family: OSBold;
            font-size: 1.2em;
            border: 0px;
            margin-top: 1em;

            transition: all linear .3s;

            &:hover{
                transform: translateY(-10px);
                box-shadow: 0px 10px 10px 10px #d7d7d7;
            }
        }
    }
    @media screen and (max-width:600px){
        &{
            padding: 6em 0em 3em;
            .title{
                font-size: 2.2em;
            }
            .desc{
                width: 95%;
            }
            .register{
                .top{
                    display: block;
                    .item{
                        width: 100%;
                        margin-bottom: 1em;
                    }
                }
                
                .send{
                    text-align: center;
                    button{
                        width: 16em;
                    }
                }
            }
        }
        
    }
}



.footer{
    background: #87b8d9;
    padding: 2em 0em;
    color: #fff;
    .container{
        display: flex;
        justify-content: space-between;
        align-items:center;

        &::before,&::after{
            display: none;

        }

        .copyright{
            font-size: 1em;
            font-family: OSBold;
            color: #fff;
            text-transform: uppercase;
            span{
                font-family: OSBold;
            }
        }
        .link{
            display: flex;
            
            .item{
                width: 2em;
                height: 2em;
                border: 2px solid #fff;
                border-radius: 100%;
                
                margin-right: .5em;
                overflow: hidden;
                cursor: pointer;


                transition: all linear .3s;

                &:hover{
                    transform: translateY(-10px);
                    box-shadow: 0px 10px 10px 1px #767676;
                }

                img{
                    width: 100%;
                }
            }
        }
    }
    @media screen and (max-width:700px){
        .container{
            display: block;
            .copyright,.link{
                width: 100%;
                margin-bottom: 1em;
            }
            .copyright{
                text-align: center;
            }
            .link{
                justify-content: space-around;
            }
        }        
    }
}

.up{
    width: 70px;
    height: 70px;
    position: fixed;
    bottom: 45px;
    right: 45px;
    a{
        width: 100%;
        height: 100%;
        &:hover {
            animation: up 1s;
        }
    }
    @keyframes up {
        from {
          transform: scale3d(1, 1, 1);
        }
      
        30% {
          transform: scale3d(1.25, 0.75, 1);
        }
      
        40% {
          transform: scale3d(0.75, 1.25, 1);
        }
      
        50% {
          transform: scale3d(1.15, 0.85, 1);
        }
      
        65% {
          transform: scale3d(.95, 1.05, 1);
        }
      
        75% {
          transform: scale3d(1.05, .95, 1);
        }
      
        to {
          transform: scale3d(1, 1, 1);
        }
      }
}

